<?php

namespace app\common\validate\Product;

//引入底层的验证器类
use think\Validate;

/**
 * 订单商品验证器
 */
class Type extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name' => 'require', //必填
        'weigh' => 'require', //必填
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'name.require'    => '产品昵称未知',
        'weigh.require'    => '产品权重未知'
    ];
    
    /**
     * 验证场景
     */
    protected $scene = [
    ];
}
